import 'package:bloc/bloc.dart';

class RefreshDateEvent<T> {
  T value;

  RefreshDateEvent(this.value);
}

class RefeshDateState<T> {
  T value;

  RefeshDateState({this.value});
}

class RefreshBloc extends Bloc<RefreshDateEvent, RefeshDateState> {
  @override
  RefeshDateState get initialState {
    return RefeshDateState(value: null);
  }

  @override
  Stream<RefeshDateState> mapEventToState(RefreshDateEvent event) async* {
    yield RefeshDateState(value: event.value);
  }
}
